package io.linfeng.modules.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author linfeng
 * @date 2022/4/19 19:47
 */
@Data
@ApiModel(value = "充值表单")
public class RechargeForm  implements Serializable {

    @NotBlank(message = "充值参数有误")
    @ApiModelProperty(value = "用户充值ID")
    private String recharId;

    @ApiModelProperty(value = "来源")
    private String from;

    @Min(value = 0,message = "充值金额不能低于0")
    @ApiModelProperty(value = "充值金额")
    private Double price;

    @ApiModelProperty(value = "赠送金额")
    private Double paidPrice;

    @ApiModelProperty(value = "充值单号")
    private String orderSn;
}
